package com.aoxun.service.impl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.aoxun.dao.ISysFunDao;
import com.aoxun.pojo.Sysfunmodule;
import com.aoxun.service.ISysFunService;

public class SysFunServiceImpl  implements ISysFunService {
	private ISysFunDao sysFunDao;

	public List GetModules() {
		List<Sysfunmodule> flist=sysFunDao.FatherList();
		for(Sysfunmodule sys:flist){
			sys.setSonModuleList(sysFunDao.SonList(sys));
		}
		return flist;
	}
	
	

	 // get and set method
	
	public ISysFunDao getSysFunDao() {
		return sysFunDao;
	}

	public void setSysFunDao(ISysFunDao sysFunDao) {
		this.sysFunDao = sysFunDao;
	}
	
	

}
